function addRoute(name,title){
  let path='/'+name
  return {path , 
     component:  {...globalThis.mfcRouterAdapter},
    //  title,
     meta:{ 
      path,
      title,mfcPath:name+'/'+name} }
      
  
}



window.MFC_ROUTE_CONFIG=[
    // { path: '/', redirect:'/x-home' },
      // { path: '/x-home', component:  {...globalThis.mfcRouterAdapter},meta:{ mfcPath:'x-home/x-home',title:'首页'} },
      
      addRoute('x-home','首页'),
      addRoute('x-demo-child-comp','子组件'),
      addRoute('x-demo-multi-read-esm','批量esm加载'),
      addRoute('x-demo-css','css样式'),
      addRoute('x-demo-setup-without-return','自动return的setup'),
      addRoute('x-demo-parent-child-communication','组件通讯'),
      addRoute('x-demo-http','http请求'),
      addRoute('x-demo-dynamic-mfc-comp','动态加载组件'),
      addRoute('x-demo-keep-alive-page2','keep-alive-2'),
      addRoute('x-demo-keep-alive-page1','keep-alive-1'),
      addRoute('x-demo-draggable','拖拽排序'),
      addRoute('x-demo-echarts','echarts图标'),
      // addRoute('x-demo-load-global-comp'),
]


export default window.MFC_ROUTE_CONFIG;